#ifndef _REGIONWINDOW_
#define	_REGIONWINDOW_

#include "Graphics/UI/UI.hpp"
#include "EditorRegion.hpp"
#include "Utilities/StringHelper.hpp"

/**
 * Window to view and edit region properties.
 */
class RegionWindow: public Window{
    
    Label lblName;
    /** Unique identifier name of Region in map. */
    TextBox txtName;

    Label lblScript;
    /** Name of script for Region to use. */
    TextBox txtScript;

    Label lblX;
    TextBox txtX;
    Label lblY;
    TextBox txtY;
    Label lblWidth;
    TextBox txtWidth;
    Label lblHeight;
    TextBox txtHeight;

    /** Region the window is displaying. */
    EditorRegion* selectedRegion;
public:
    
    RegionWindow();

    void setRegion(EditorRegion* region);
    virtual bool trapped(InterfaceEvent* event);
};


#endif

